<template>
	<view class="">
		<swiper class="width100 height-750">
			<swiper-item v-for="(item, index) in list" :key="index" class="width100 height-750">
				<image :src="item" mode="aspectFit" class="width100 height-750"></image>
			</swiper-item>
		</swiper>
	</view>
</template>

<script>
	export default {
		props: {
			info: {
				type: Object,
				default: () => {
					return {};
				}
			}
		},
		computed: {
			list () {
				const info = { ...this.info };
				const image_list = info.image_list && info.image_list.split(',') || [];
				if (info.image) {
					image_list.unshift(info.image);
				}
				return image_list;
			}
		}
	}
</script>

<style lang="scss" scoped>
</style>